<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body>
        <script>
            let arr = [1, 3, 4, 5, 2, 111, 19, 100];
            // <!-- 冒泡排序 -->
            function bubbleSort(arr) {
                for (let i = 0; i < arr.length - 1; i++) {
                    for (let j = i; j < arr.length - 1 - i; j++) {
                        s
                    }
                }
                return arr;
            }
            console.log(bubbleSort(arr));
        </script>
    </body>
</html>
